package com.hermeneute.fsa;

//public class FSTDoubleState extends Vector{
public class FSTDoubleState {
    int left;
    int right;

    FSTDoubleState() {
	left = 0; right = 0;
    }    
    FSTDoubleState(int l,int r) { 
	//add(new Integer(l));
	//add(new Integer(r));
	left = l; right = r;
    }    
    int getLeft() { 
	return left; 
    }
    void setLeft(int v) {
	left = v;
    }
    int getRight() { 
	return right; 
    }
    void setRight(int v) {
	right = v;
    }
    
    public boolean equals (Object ds) { 
    	if (ds instanceof FSTDoubleState){
    		return 
    		(left == ((FSTDoubleState)ds).left) && 
    		(right == ((FSTDoubleState)ds).right);
    	} else {
    		return false;
    	}
    }

    public int hashCode() {
	return left+right;
    }

}
